package com.mysiteforme.admin.util;

public class Constants {
	/**
	 * 测试
	 * 地址域名
	 */
	public static final String DOMAIN = "http://120.79.76.31";
	/**
	 * 测试
	 * 扫描销售二维码跳转路径
	 */
//	public static final String URL = "http://cs.taodiandating.cn/view/#/user/auth?sale_service_number=";
	/**正式
	 * 扫描销售二维码跳转路径
	 */
	public static final String URL = "http://taodiandating.cn/view/#/user/auth?sale_service_number=";
	/**
	 * shiro采用加密算法
	 */
	public static final String HASH_ALGORITHM = "SHA-1";
	/**
	 * 生成Hash值的迭代次数 
	 */
	public static final int HASH_INTERATIONS = 1024;
	/**
	 * 生成盐的长度
	 */
	public static final int SALT_SIZE = 8;

	/**
	 * 验证码
	 */
	public static final String VALIDATE_CODE = "validateCode";

	/**
	 *系统用户默认密码
	 */
	public static final String DEFAULT_PASSWORD = "123456";
	/**
	 *用户默认密码
	 */
	public static final String PASSWORD_TYPE = "user_password";

	/**
	 * 定时任务状态:正常
	 */
	public static final Integer QUARTZ_STATUS_NOMAL = 0;
	/**
	 * 定时任务状态:暂停
	 */
	public static final Integer QUARTZ_STATUS_PUSH = 1;

	/**
	 * 评论类型：1文章评论
	 */
	public static final Integer COMMENT_TYPE_ARTICLE_COMMENT = 1;
	/**
	 * 评论类型：2.系统留言
	 */
	public static final Integer COMMENT_TYPE_LEVING_A_MESSAGE = 2;

	/**
	 * 图片保存OSS路径
	 */
	public static final String PIC_PATH_BANNER = "YDYL/Banner/";

	/**
	 * 用户类型
	 */
	public static final String electricity_user_setting = "electricity_user_setting";
	public static final String electricity_small_user = "electricity_small_user";
	public static final String electricity_big_user = "electricity_big_user";

	/**
	 * 手机端端APPID 测试
	 */
	public static final String APPID = "wx48c352aeab9313d5";


	/**
	 * 手机端secret 测试
	 */
	public static final String PSECRET = "e920eb75ab0d9450d34ec5e5356e24f1";

	/**
	 * 手机端成功跳转
	 */
	public static final String APPPASSURL = Constants.URL+"/view/#/user/auth?tokens=";

	/**
	 * 手机端失败跳转
	 */
	public static final String APPFAILURL = Constants.URL+"/view/#/user/auth?token=";

	/****
	 *消息推送跳转url
	 */
	public static final String MEESSAGE_PUSH_COLOUR = "#000000";

	/**
	 * 微信获取access_token
	 */
	public static final String ACCESS_TOKEN = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential";

	/**
	 * 微信消息推送模板
	 */
	public static final String MESSAGE_TEMPLATE = "https://api.weixin.qq.com/cgi-bin/message/template/send";

	/**
	 * 微信消息推送获取TOKEN的模板
	 */
	public static final String MESSAGE_PUSH_TOKEN = "https://api.weixin.qq.com/cgi-bin/user/info?access_token=";
	/****
	 * 微信公众号推送失败码
	 * （43004）需要接收者关注
	 */
	public static final String ERROR_CODE_43004 = "43004";

	/****
	 * 微信公众号推送失败码
	 * (获取token失败码)
	 */
	public static final String ERROR_CODE_40001 = "40001";
}
